﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZyGames.DZPocker.Model
{
	/// <summary>
	/// 我的记录模型
	/// </summary>
	[Serializable, ProtoContract]
	public class RecordTable
	{
		/// <summary>
		/// 桌子ID(记录桌子的ID而非一般的桌子ID)
		/// </summary>
		[ProtoMember(1)]
		public int TableID { get; set; }

		[ProtoMember(2)]
		public string TableName { get; set; }

		[ProtoMember(3)]
		public DateTime BeginTime { get; set; }

		/// <summary>
		/// 房间时间(分钟)
		/// </summary>
		[ProtoMember(4)]
		public int TotalTime { get; set; }

		/// <summary>
		/// 盈亏(玩家在当前一手牌局中的盈亏)
		/// </summary>
		[ProtoMember(5)]
		public int Profit { get; set; }

		[ProtoMember(6)]
		public int SmallBind { get; set; }

		/// <summary>
		/// 是否具有保险
		/// </summary>
		[ProtoMember(7)]
		public bool Insurance { get; set; }

		/// <summary>
		/// 房主
		/// </summary>
		[ProtoMember(8)]
		public SimpleUserDataWithTexture RoomMaster { get; set; }
	}
}
